added a to_hash convenience method to transition
Merge pull request #15 from mdsol/feature/transition_hash

added a to_hash convenience method to transition