convert examples to statement syntax
cleanup output a bit