added some methods to Subnet class and test procedure for Subnet.py