Changed typed schema creation

Closes #78