added function to exclude directories. also moved logic to download a file into a function.
added excluded directories to example. now it should only download directories monKB, tueKB, etc plus files in the root directory
Merge pull request #2 from zeroday/excludedirs

simple exclude directory functionality.