First version of smg3d