Add Travis, Guard, and fix rubocop complaints

Add Travis testing, fix errors and add guard for local development.