Removed some debug printing and fixed the Document.py's printDocument, printBook etc. functions