Fixed bug in 3D Smoothing.
Fixed remaining bugs in 3D refinement templates.
Updated MPI code for refinement.
Still there may be possible bug in 3D MPI refinement.