Added additional commenting of code.