Add save file dialog
Clean comments and add license note.