Uncommented everything and made it functionnal
Modified script to accept a list of files