added save_UAIFile method

Pull request for the issue #1916.