Added package_state to App API output, tests and API documentation