Rewrite

Fixes #3
Prepare 0.2.0 release