Fixed pom.xml
Added support for nested state machines