Added dontrun to example for data generation, to avoid lenghty output.
Fixed warning messages obtained from valgrind and g++ -Wall -pedantic.