1.change the setting for saving plots;
2.update for CRAN check