Made custom digest function, clean up some docs, some issues with update.optmatch