Updated error handling
Minor error handling updates
Make file names consistent with GUI 'Save Charts'