added error check to environmentalLock function.
added error check to environmental function.
updated version number.