Massive commenting to make the source more readible.