rubocop fix

Some small fixes for ruby best practices.