write documentation; allow config overriding in api; add travis conf