gui: Add documentation of public functions.