Allows a single file to run and output by default in overwrite mode.

The cli instructions imply that this works, however the tool function was missing the code for it.

Also I added a final else to make sure that an error is thrown if something goes wrong and none of the other if/ifelse catch.

Fix for Issue #162