Subnet implementation

closes # 164... implementing subnet feature