Added comments, and R parameter to update.

Commented the functions better, and added an optional measurement error(R)
to update() that overrides the filter's R for that one call.