static void Main(string[] args)
        {
            string path;
            if (args.Length > 0)
                path = args[0];
            else
                path = Directory.GetCurrentDirectory();
            Publish pub = new Publish();
            pub.setPubDir("./publish");
            pub.setDupDir("../../duplicate");
            pub.setTemplate("../../Resources/Template.htm");
            Navigate nav = new Navigate();
            nav.go(path, "*.cs");
            List<string> files = nav.getSources(); // To Obtain list of fully qualified filenames to be processed
            DirectoryInfo di1;

                if (!Directory.Exists(pub.getDupDir()))
                    di1 = Directory.CreateDirectory(pub.getDupDir());
                else
                    di1 = new DirectoryInfo(pub.getDupDir());
                    foreach (string file in files)
                    {
                        FileInfo File = new FileInfo(file);
                        DirectoryInfo di;

                        if (!Directory.Exists(pub.getPubDir()))
                            di = Directory.CreateDirectory(pub.getPubDir());
                        else
                        di = new DirectoryInfo(pub.getPubDir());
                            try
                            {
                                List<CodeAnalysis.Elem> table = pub.Locate(File);//find locations where spans need to be inserted
                                if (table != null)
                                {
                                    FileInfo dupFile = pub.Spans(table, File);
                                    if (dupFile != null)
                                    {
                                        pub.makePage(dupFile, di);
                                    }
                                }
                            }
                            catch(Exception ex)
                            {
                                Console.WriteLine("An error occured: " + ex.Message);
                                continue;
                            }
                        pub.CreateDirList(di);
                    }
        }
        static void Main(string[] args)
        {
            Console.WriteLine("\nTesting FILE FINDER");
            Console.WriteLine("====================\n");

            string path;
            int count=0;
                if (args.Length > 0)
                    path = args[0];
                else
                    path = Directory.GetCurrentDirectory();

            Navigate nav = new Navigate();
            nav.go(path, "*.cs");

            List<string> files = nav.getSources(); // fully qualified filenames

                foreach (string file in files)
                {
                    count++;
                    Console.WriteLine("Processing file" + "  " + count+ "  " + file);
                    Console.WriteLine("");
                }
        }