Added version number + some fixes

-Added version number
-Added IsIPValid function
-Added port and ip error handling
-Added better error handling in registry
-Version number now visible in the caption in release mode