Added example code in doc
Code formatting correction