add output states with transform
Merge pull request #11 from thagorn/master

add output states with transform