minor changes in GetDocuments. started debugging.
code cleanup. added output for debugging.