Added loops for generating controllers, running controllers, and storing the results
Fixed stupid syntax errors