Documented the new toggle() API method.

Part of issue #95.
Added openEvents/closeEvents to expose defaults tests.

Part of issue #67.