Initial version
Better interface, more tests
Added travis-ci config