exposed Pattern.prototype, updated docs