Add docblocks
Remove hardcoded view script path
Add ability to change layout from controller actions