Refactored namespace

Refactored the namespace and published the IP and Netmask classes as
well as the Subnet class.