1) Deleted unwanted command line arguments
2) Introduced a flag to support recursion of directories
3) Checking to see if pom and pom.template files are present