Add documentation in boolean.h
Add extern "C" declaration when __cplusplus is defined