Handles ontology header correctly. Closes #235