Added comments explaining variables and equations.