added javadoc
Merge pull request #21 from jacketattack/state-javadoc

merging the state javadoc