Added function that validates IP addresses, added function that initializes WS related stuff outside the constructor, added some comments