Update documentation with webhook event, authentication and fix errors
Fix mistake in code