almost completed generateReads script, minor changes