Rubocop fixes. Add Rubocop to travis build.
Merge pull request #19 from AMeng/rubocop-fixes

Rubocop fixes. Add Rubocop to travis build.