Finished AutomatonParser class, added some necessary function calls in the Automaton class.