removed unnecessary spreadsheet template.
additional protection from out of memory errors