Added comments within code.