Added memwatch module for detecting memory leaks.