Clean up code and remove worthless files