Fix code formatting and comments
Upgrade gem dependencies
Update travis config to match other gems