Main method change

Changed main “run” method to allow for easier debugging.