update and reset are now methods of OCSensor, fixed bugs