added function to write quants and quant seqs
do range check on quants sequence
do range check on quants sequence
added write_handle routine
added write_handle routine