added date dictionary and selector printing
fixed ab integer with ip=0
fixed utf-8 encoding for outfile to support non-ascii
fixed ascii