skip docinfo and hidden files for single document processing

Finishes the changes for issue #39