Cleaned up code.
Changes in sequence of computations caused some changes in numerical error.