Very basic saveFileAs function implemented