small changes

change to tolerance compare in match()

add -q switch for charge