Further updated socket server/client and error checked server