added SubGraph class
rederived Reference and Box from SubGraph to share enabledPlug()/correspondingInput() functionality