tweaked AggregateReader and AggregateWriter
added SortReader class
added standalone Test/MockWriter class
added SortWriter class