Rubocop code improvements

Line is too long. [100/80]<br>Do not write to stdout. Use Rails' logger if you want to log.