added AddFile() function