Fixed delete old files function; added create reports function