Document main event loop actions in detail
issue