shared pointer fixes to prog demos
pml - calcflux -debugging
pml visualization fix