updated documentaion and eamples