added comments to most of the files