Added expanded error correction
Knocked out a lot of testing issues, and now tests run in seconds (was setting dimensions way too large!)  Will try to find better coefficients now that test harness is working.