added rubocop
Started fixing stuff based on rubocop suggestions. Not done yet but half way through