doc errors found and example added