Valgrind updates

 * Valgrind script added.
 * Debug option -g added to makefile.
 * log files added to ignore list.