Added YUIDocs to Dom and EventContract, closes #2