BG Thread management and public read function
Better get/put using memcpy.
Exit and error conditions in bg thread.
Doxygen-style comments for C library.