added numGenes to ontology docs
cleaning up code, fixing bugs