added pattern support examples, little fixes.