Adding missing code docs

Change-Id: I732fd58e514682e0514130fe11e6bd47430e38d2
Reviewed-on: http://review.couchbase.org/41154
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>