Commented and removed magic numbers.

YAY for commenting. You may now read the code and attempt to understand
it.