Simplified the computations. Fixed the truncation errors.