added flag instructions, fixed checking if output is dir
Merge pull request #7 from aorti017/master

added flag instructions, fixed checking if output is dir