fix documentation and example