Added comments throught the example code