Improve export

Add extended ontology export and simply basic exporting mechanism.