hooked up the parser
added main function, started to revert to record version
reverted emitters
fixed up main file a bit and finished analysis (except still some bugs)