added save function and summary the output.