minor improvements in examples