update documents snippet

Update documents snippet to use NSArray -firstObject method to retrieve the path.
Provide an appropriate NSURL object.