updated documentation, improved logging and removed malloc for cb_cookie
fix size_t formatting
fix store error message
fix store message ... again
oops...typo
cleanup log/debug messages
add debugging and simplify return check