clean up statemachine to basec generation
update gitignore