Finished valgrind, deal with all the memory leak.
Fixed several things, rewrite makefile for Herschel