Refs #414. Improved comments and changed how a couple variable are used.