Fix several programming style issues in the examples