Making the socket not pause the while loop if it doesn't receive data.
Merge pull request #1 from Reyuu/maciej

Making the socket not pause the while loop if it doesn't receive data.
rewritten everything in class - easier to use
added self on some places
added option to choose printing pingedponged msg and added self in some places (again)