Updated install script and memcheck script.