document the addValue() function and the callback for on(), which were missing from API docs.
#1 document the addValue() function and the callback for on(), which were missing from API docs.