Split IP checking/comparing into separate checkIP() method
Bugfixes and improvements; replace checkIP() with isValidIP()
Merge pull request #1 from teppokoivula/check-ip

Improvements to IP validation (including separate isValidIP() method)