Merge pull request #61 from kobliha/master

Added functionality for checking network with or without netmask