Add #to_h and optional arguments
bump minor version to 0.4.0
Update gem dependencies
Merge branch 'release/0.4.0' into develop