Documented External Sources

Added comments giving credit for code I didn't write all myself. Thank
God for Google and Stack Overflow.