Cleaning the code, save to only one output file, handle other lines that don't contain  redirects
Change recursive method to work correctly