Added Rubocop to keep coding style consistent.
Fixed issues with code style.