Add a command line argument --format to specify CSV output for redirection to a file

Addresses issue #5

@chetan51