added inline comments

Change-Id: I3888cec73f84d5d61dde323a6b2518e3f1ff2f5f
Reviewed-on: http://review.couchbase.org/24719
Reviewed-by: Ronnie Sun <ronnie@couchbase.com>
Tested-by: Ronnie Sun <ronnie@couchbase.com>