Added new modules: ontology, gate, common, preprocessor. Refactored the
code.