adds rubocop and improves code
Merge pull request #37 from Uepsilon/rubocop

adds rubocop and improves code