Added notes about global variables, constants, and magic numbers.