Allow hidden file pattern to be customized, document options

Use fnmatch and a configurable list of patterns to determine if a file is considered hidden.
Please, put back all double whitespaces (they are linebreaks) and remove breaks there they are not supposed to be.