Add callback feature

- Allows for a callback once creating files has finished
- Changes check for error, to check that error is defined using lodash-node
- Ensures callback is a function using lodash-node (allowing for no callback to be passed)