Add documentation on the run loop