Update documentation

Includes new sample for direct event registration.