added comments to the confusing bits