Added a timer to kill program, some other stuff

New bug related to creating serversocket in peer instead of input
connection