Fixed all the rubocop warnings