add folder support
Merge pull request #2 from Bouteloua/master

Add folder support.  Closes #1.