Fixes, changes,

Changed many things. Mainly input and some code structure. Added
improved debug output for the parser. Removed some old code that
wouldn't function anymore. Fixed some problems and bugs, esp AAAX00
course code recognition.
Should be good to go now.