added functions period.fold(), plot.model()