refactor simple app, update PhpDocs