server sending works again
improved error handling
got rid of the auxillary Packet class
added missing break and changed message when port in use