A Realistic Theory of Categories: An Essay on Ontology