Added comments to program

Described a method