More math and data error fixes. Plus some additional explanation.