Better interface, more tests
Added travis-ci config