Added some stuff to the design doc and tweaked a few things in the code (mainly removed unnecessary print statements).