Improved algorithms, includes results, and commented code.