Added Predicate documentation and code samples