Cleaned-up examples and some commenting.