Added foundation and fixed some formating on the controller