Could you update this w/ some comments? I'm a little unclear on what some of this does (It seems to work, though!)