Implement clean

Fixes #32