add. timestamp and filetype formats for output.
add. functionality to save output to file.
add. logging to main.