printDocument became printList, old printList removed.

Restructured printDocument and printAndDeleteNode to not
rely on previous printList function.