Refactored code base.
Created index controller.