Added memwatch for development and updated sample with gc debug.