removes unneeded files and cleans some code