improved REST API and fixed travis-ci config files