Add setReset instead of reset function. Fix comments.