Added Recursive Option and format CSV