Removed extra files and added leap control