fixed writing BAM, fixed half open for sam writer, started pyicount