Update usage example in README.MD

Added SampleGenerator code snippet in documentation.