fixed some initialization bugs pointed out by valgrind

also added a valgrind target in makefile along with
a suppression file.
Merge branch 'master' into port_osx

Conflicts:
	.gitignore