added error check to actionLock function.
added error check to action function.
updated version number.