Formatted a little, added many comments to code -- cosmetic update