Rewrote some comments for improved clarity.