Merge branch 'release/0.3.2' into dev
huge internal rewrite, lots of cleanup and added tests (fixes #1)
version bump + changelog update
Merge branch 'release/0.4.0'