update.optmatch function

Performs an update on an optmatch object.