refactored SequenceReader and improved tests
refactored BufferedIStream