Added some comments so that my madness might make sense to somebody
other than me.

Signed-off-by: Elliot Voris <elliotfriend@gmail.com>