Added simple mutex/guard and just *some* body for main
First steps, though jack doesn;t want to talk to me