code revised to extract data for multiple years and/or multiple perils at once