commenting updates

updated comments to clarify functionality of each file