Deletes unused files
Refactors- prototypes all functions