Fix rubocop issues

Mainly whitespace issues, plus an outdated hash syntax.