Added comments to explain some of what's going on.

Signed-off-by: Robosphinx <robosphinx@gmail.com>