Cleaned up APP module
Added support for start parameters (used by procrun) and some documentation