add travis-ci config file
create segments
fix chunk generation