EDIT: I found the solution, it's even on page one, but I'm leaving this here as it would help other new folk for you to add that to the instruction post, and it should definitely be in the github readme. Otherwise, good work, it works well.
ORIGINAL PROBLEM:
Posted this to the github as well, but sharing here too:
Tried running script following README and not found. CPed the file to match the command name (copied version removed the _new.c) and result was this:
./set_voltage: line 1: //: Permission denied
./set_voltage: line 2: //: Permission denied
./set_voltage: line 3: //: Permission denied
./set_voltage: line 4: //: Permission denied
./set_voltage: line 5: //: Permission denied
./set_voltage: line 6: //: Permission denied
./set_voltage: line 28: static: not found
./set_voltage: line 29: static: not found
./set_voltage: line 30: static: not found
./set_voltage: line 31: static: not found
./set_voltage: line 32: static: not found
./set_voltage: line 33: static: not found
./set_voltage: line 34: static: not found
./set_voltage: line 35: pthread_mutex_t: not found
./set_voltage: line 36: pthread_mutex_t: not found
./set_voltage: line 40: syntax error: unexpected "("