Added script to re-generate all the examples.
Generated a clean jar.
Added valgrind test.