Added Some Code changes and comments
Code Changes