Format the example and test code more to Python style standards. Improve whitespace. Improve documentation formatting.