Adding 'type' to schema as a required field

closes #10