brought sample app up to date with recent changes
phpdoc
fixed typo