Added application argument handling to CApplication