removed redundant setup code, edited 'writeTmpFastq'