Added comments.

Added several more comments & pseudocode.