Loading in segments

Test example included.
Merge pull request #33 from Boyyce/master

Loading in segments