options added
added directory option
Merge pull request #1 from san4net/ver1

added directory support