code: def add(self, layer, verbosity = 0, position = None):
          
          layer._verbosity = verbosity
          layer._maxRandom = self._maxRandom
          layer.minTarget = 0.0
          layer.maxTarget = 1.0
          layer.minActivation = 0.0
          layer.maxActivation = 1.0
          if position == None:
              self.layers.append(layer)
          else:
              self.layers.insert(position, layer)
          self.layersByName[layer.name] = layer
docs: Adds a layer. Layer verbosity is optional (default 0).