addSchema() functionality and additionalProperties fix

This closes #30 and fixes some stuff. "pattern" becomes another term for "regex" as specified in the v4 draft.