Added writeToFile and GetFilesRecursive methods.