better ip checking
improved ip checks
improved ip/subnet validation, updated tests