fixed file length issue in bz2, added newlines after printfs