missing last line bug is fixed.  now phredwriter is working and
performance is acceptable with large heap space setting