add simple signalling between threads, clean up debugs, reset dispense flag when it is found true, dispense some beer