upgraded stm.dump and added stm.saveAs

now opens a file - save as dialog and saves the file with the specified data and filename