Commit Fourteen. Added some more notes. Cleaning up the code a bit for ease of reading.