added comments explaining sections