Changed directory structure to add junit tests. Implemented and tested a very basic FSM.