addressing protection issues
adding tests for use with valgrind
adding NEWS and version bump