Minor API changes. Removed dependency to Ontology from Statistics.
Converted to shared_ptr API.
Statistics file writer.