Merge branch 'development' into c++
Fixed some commenting and added send bool to c++
Cleaned up some of the examples and put in place some pretection against memory leaks where possible
Possible loss of data fix
Merge back of example cleanup and memory leak prevention