Moved mm gibbs stuff to its own file