This adds some documentation to the update function and also improves the logging by adding some info and bumping errors to LOG_ERROR.
This adds some documentation to the update function and also improves the logging by adding some info and bumping errors to LOG_ERROR.