Added comments to sections. Remove unnecessary code.