changes for next version: code cleanup, interface cleanup (but backwards-compatible) 

and travis-ci/coveralls support.