Adjusted the documentation.

Added additional throws for bad arguments and callbacks.