Clear code and remove unused files