fix parsing of explanations, use util.inspect for printing messages