Corrected errors

Corrected errors from additional proof, and from changing the references
Found references for residue theorems
Did a number of todo notes

Added a number of references, corrected some typos, and other changes