added comments and deleted commented out code