added docs for contains function

I was looking for this function and couldn't find it in the docs, so I added it with some examples.