made inheritance possible and added to_hash
Merge pull request #4 from markijbema/add-better-to-hash-support

Add better to hash support