Fix write-snps chromosome id bug

Almost done, final refining and testing