Fixes issue #46: use int explicitly
Merge pull request #48 from asadoughi/subnet_ip_fix

Fixes issue #46: use int explicitly
Merge pull request #49 from asadoughi/master

Fix for circular reference error