adds pout.m() to print out memory usage at a point in time