Add inline comments to make code self-explanatory

Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@yahoo.co.in>