added comments for changes i made