Added ls generating function and printing of file list
Typo