Added support for rubocop and updated the code style.