Changed default args to include nx+nz
Fixed bug with vector outputs.