updated controllers, views and added rspec and foundations