0.2

This is a complete rewrite of the module. It is not tested yet. Maybe some commits will follow.