fixed cores counting; added keys per usage type; schema test added