Fixed loop error
Deleted unnecessary files