bloat

So what exactly causes the bloat in early pregnancy? And when does it go away?