first few functions
fleshed out the basics of hg manager
the rest of the hg manager files