Update dependencies, inserted coveralls.io and simplified code.
Fixed specs.