added mutex text and unified mutex implementation