Gabe mongoose

Latest master merged in. We should discuss the layout of the code.