Add coveralls badge
Add additional tests

And fix bugs of course