Add ability to create a compartment with a provided global.
Merge pull request #34 from jdm/newglobal

Add ability to create a compartment with a provided global.