[SQUASH ME] changed/fixed function prototypes and adjusted mutex init