add check for unrecognized option without parameter.  cant believe that was missing until now
add a few heuristics to cut down on lookup times in position cache
fix bug setting updateFlag where it was getting true almost all the time