Merged updates from log and memory repos, minor refactoring and documentation updates in cstring.c and cstring.h