Tweaked the parser a little and added open file functionality.
Text display needs refactoring: make immutable.