addEvents and attendEvents API functional

They should be working correctly, but I haven't tested it!