Added Menubar to allow for exits, and to allow Code Generation.
Added start to Code generation.
Added checks around attr and rltn changes, so non-changes don't cause errors.
Refactored code to better follow java conventions.
Lots of cleanup (spaces, tabs, etc).