Added RenderContex, FluidGrid, other change and fixed a lot of bugs