Fixed problems in using paths with spaces for programs and documents.
Commented some debug output.