Feature/rubocop

introduce rubocode, check tool for Ruby Style Guide (https://github.com/bbatsov/ruby-style-guide), and reduce offence count from over 200 to 64.