Added output directory creation.
Added output directory.
Corrected paths.