fixed bug in how job results were checked. also added logger initialization

fixed bug in how job results were checked. also added logger initialization