Add top level management for segments

Brought up in issue #49. This will resolve that.

Feedback?