added script to call hselect from command line.  Changed minor bug in tools.hselect