public Simulation(String[] config, boolean verbose)
    {
        //set the output Person file
        outPerson = new OutputFile("personCreated.txt");
        //set the output BusStop file
        outBusStop = new OutputFile("busstopCreated.txt");
        //set the output Person file
        outBus = new OutputFile("busCreated.txt");
        //set the output BusStop file
        outBusStopActivity = new OutputFile("busstopActivity.txt");
        //set the output BusStop file
        screen = new OutputFile("output.txt");
        //set the summary file
        summary = new OutputFile("summary.txt");
        //set the Bus-Stop summary file
        summaryBusStop = new OutputFile("summaryBusStop.txt");
        //set the Bus summary file
        summaryBus = new OutputFile("summaryBus.txt");
        
        //person file header
        outPerson.WriteToFile("Time, Person, Bus-Stop, Arrival Interval, Arrival time ");
        //Busstop file header
        outBusStop.WriteToFile("BusStop");
        //Bus file header
        outBus.WriteToFile("Time, Bus");
        //person file header
        outBusStopActivity.WriteToFile("Person,Arrival-BusStop,Start-BusStop,Stop-BusStop,TimeonBus,TimeoffBus,WaitTime,NumberOfTimesLeftbyBus");
        
        //Bus-Stop file header
        summaryBusStop.WriteToFile("Bus-Stop, Avg-Person, Avg-WaitTime, Min-Per(s), Max-Per(s)");
        //Bus file header
        summaryBus.WriteToFile("Bus, Trips, Empty-Trip(s), Left-At-BusStop, Transported, Min-Per(s), Max-Per(s)");
        
        //set verbose
        this.verbose = verbose;
        //set time
        time = 0;
        //set selected bus stop to none
        selectedBusStop = -1;
        //set the bus number
        busNumber = 0;
        //set the configuration list
        this.config = config;
        
        try
        {
            //configure the simulation
            ConfigSetup();
            //create all BusStops, 
            CreateEntities();
            //start Simulation
            RunSimulation();
        }
        catch(Exception e)
        {
            System.out.println("Error: "+e.getMessage());
        }
        
        
    }