Added the ability to open/save automaton state from/to a file.