Fix script

Also output a file for haplotype information