added Java Doc for all public methods in UDP/TCP classes