add gem better errors
refactor definitions methods of home_controller, add break line
refactor level to use scope, fix specs