function add_to_map($methodname,$function,$sig=null,$doc=false,$sigdoc=false)
		{
			$this->dmap[$methodname] = array(
				'function'	=> $function,
				'docstring' => $doc
			);
			if ($sig)
			{
				$this->dmap[$methodname]['signature'] = $sig;
			}
			if ($sigdoc)
			{
				$this->dmap[$methodname]['signature_docs'] = $sigdoc;
			}
		}