added error check to parentingLock function.
added error check to parenting function.
updated version number.