Added a boat load of comments to explain what\'s going on.