Update to v1.0.4

Added directory creation and logging of output to file(s)