Fix segment collection
Added examples
Updated setup (issue #10)