Tiny refactoring
Support returned results from app tasks
Doc blocks and minor fixes
Doc blocks and minor improvements