edited documentation and examples