handle more than 1000 documents
changed tabs to spaces
formatting
better printouts