Remove the API
Remove unused imports
Refactor all the things (closes #22)