added ddos script and cleaned up code