formatting and removing miniUtility

Now port will be identified in collector script
separate function for client connect