added recurse functions which reads all files inside a directory , including directory inside a directory