code and doc cleaning in testStackPatches.m