Organise documentation and add event and attribute documentation.