added code for reading bzip2 files