Refractored classes using StreamUtils class for easier accesing sockets BufferedReader nad PrintWriter