Port: ReaderUtil, SegmentCoreReaders

and general clean-up