added some phpdoc to advanced app