fixed some initialization bugs pointed out by valgrind

also added a valgrind target in makefile along with
a suppression file.