Deletes unnecessary files
WIP
Refactors interface and implements callback hooks