Added a few more comments and made some clarifying code changes.
Added a few more comments and made some clarifying code changes.

zgrossbart/jdd,zgrossbart/jdd,zgrossbart/jdd,shawnsarwar/jdd,zgrossbart/jdd