Added docs and event tests