Cleaned up the AcceptedOntologies code.
Ontology search and getting all ontologies now works correctly.
Some small modifications.