logging upgraded and notes and comments improved
obsolete code removed
logging upgraded and javadoc improved
socket and connection timeout introduced