Added creating routers, machines, and generating machinesfile and hostsfile