added example and doc for using netmasks in config