*Improved sample
*Added documentation