Syntax correction
Add target folder to command line
Add output folder and close buffered reader