minor cleanup
cleanup and fix of example
updated documentation