Made lineRecordIterator more generic
added gz compatibility to schtats