Fixed Rubocop styling and syntax issues