Added comments

Detailed changes and added attribution