ISD-1 Added comments to make code easily understandable.