Added better handling; fail fast for
invalid spreadsheet.