Added options for allowed subnet and cleaned up some commented debug output