Added export option.

This is used to export the output to a file.
The files location will be specified in the config file.