Updated the dependencies
Create the output directory if it doesn't exist.
Reformat