Expanded the exampleFunctional.php demo and fixed some typos.