added command line option to specify spreadsheet