Added lock functions to skeleton and node entities, refined tool variables, some other small stuff