Merge remote branch 'cloudant:3102-fix-return-value'

This closes #16

Signed-off-by: ILYA Khlopotov <iilyak@ca.ibm.com>