Passed class to init & a callback to the condition
Relied on init-set program name
Commented, added whitespace & fixed warn