added error check to religiousLock function.
added error check to religious function.
updated version number.