Defaulting next line / testing

- Added some functionality to main.coffee
- Added unit tests for main controller