Resolved a little bug in automaton.cpp
Added automaton.cpp in Makefile.am
Moved code from automaton.hpp to automaton.cpp