fixed CRAM reader blocking; 
multiple fixes in CRAM writer to make it actually work.