fixes some bugs
deletes some files