Added documentation for the sample code