Added some comments and parameter args[i] as path