public static void main(String[] args)
    {
        //reads config file
        ConfigFile config;
        //holds verbose flag
        boolean verbose = false;
        
        if(args.length < 1)
        {
            System.out.println("Usage: java Simulation <filename> <option: verbose> eg. java Simulation test.txt -v");
        }
        else if(args.length ==1)
        {
            
            //get the config file
            config = new ConfigFile(args[0]);
            //read the cofig file and extract options
            if(config.ReadFile() == true)
            {
                System.out.println(config.GetStringData());
                //pass the options to the simulation
                new Simulation(config.GetData(), verbose);

            }
                
        }
        else if (args.length == 2)
        {
            if(args[0].compareToIgnoreCase("-v") != 0)
            {
                //get the config file
                config = new ConfigFile(args[0]);
                if(args[1].compareToIgnoreCase("-v") == 0)
                    //set verbose
                    verbose = true;
                else
                {
                    System.out.println("Error: Invalid option specified!");
                    return;
                }
            }
            else
            {
                //get the config file
                config = new ConfigFile(args[1]);
                if(args[0].compareToIgnoreCase("-v") == 0)
                    //set verbose
                    verbose = true;
                else
                {
                    System.out.println("Error: Invalid option specified!");
                    return;
                }
            }
            
            
            //read the cofig file and extract options
            if(config.ReadFile() == true)
            {
                System.out.println(config.GetStringData());
                //pass the options to the simulation
                new Simulation(config.GetData(), verbose);

            }
        }
        else
        {
            System.out.println("Error:  *** Too many parameters *** --> Usage: java Simulation <filename> <option: verbose> eg. java Simulation test.txt verbose");
        }
    }