Fixed some bugs preventing Am2900 from working in Eclipse