final
added log messages and moved actions from controller to models
created custom rake task and logging to log.html.erb