Added console SAVE command. Added error handling and prevented memory leak in SaveDTO