Adds a proper to_h/to_hash implementation
Merge pull request #74 from rosenfeld/master

Adds a proper to_h/to_hash implementation