Merge pull request #1 from kevinxucs/master

Add parameter for setting output directory.