Almost everything tested and fixed!
without SSLSockets (tested on normal Sockets) and reading from file
Merge pull request #16 from dokaptur/tested

Almost everything tested and fixed!