delete a whole bunch of unnecessary files and make small refactors