initg working (I think)
updateg working for the upper bound
added updateGLower, updateG now returns a list (with Upper and Lower)
fixed a small bug involving variable names