Update docs for apply, additional example and test case

Addresses #157.