changed formatting, added some comments to individual sections