Renamed document event to document-close and added document-open event.