Removes the unused files, organizes the code