added more documentation/comments
added tests/implemented segment.std() for standard deviation.
added test for / fixed iterating through Segment's data multiple times