Add some decent comments and explanations.