Output directory is created if it doesn't exists. 

Pull Request for #574 .

Changes are on 'output-directory' branch.

:)
Functions are written using camelCase like `function writeOut()` and not using `var`.