added write_distinct_entities
removed spaces
added get distinct types and their frequencies
added distinct restriction
added predicate distinct object
fixed write_predicate_literal counts