add coveralls
upgrade rspec to 2.11+
code style improve
NEED review: I'm not sure this change is allright