Changed error handling on empty app name
Added comment how to use run() in app mainfiles
Codereview
Combined getallParams() method into getParam() method and reformat
Added missing comments
To much to comment. Mostly works under codereview.