added comments to the function get time_series.m