private function addAtom($atom) { ++$this->atomCount; $this->atoms[$this->atomCount] = array('id' => $this->atomCount, 'atom' => $atom); return $this->atomCount; }