Formation, phase equilibrium and gas exchange of methane hydrates