A lot of small refactorings

Added rubocop
Added simplecov