code and comment clean-up
added SortReader/Writer tests