Added some missing methods and fixed #to_hash to be recursive
Bumped version to 0.4.0