Eliminate code duplication between DXApp.run(), DXApplet.run()
Add docstring to clarify autodoc