renamed examples to more descriptive names; minor fixes to example code