Refactored segmentprovider
More refactoring
Segment tests
Segment provider interface
Cleanup and splitting of MSC Calculator