Fix module api, default options
Add couple of tests and travis config