fixed updateKey() and gatewayShareOff() to parse the library name instead of looking for a specific version of the library or the existance of a key before turning it off. We will have to have a shared gateway function added as well.