add rubocop and reek task and fix all errors

add rubocop config file
set line max to 300
add to rake default task
fix all warnings produced by rubocop