Added a start state and Java main class wrapper