Add some code comments.

Signed-off-by: crynobone <crynobone@gmail.com>