Add index for the demos.

Also modifies an old demo so it can work within the demo tree.