Moved demo.php to 'examples'. Added a procedural example of layout switching.