minor fixes and example