Added jfail method and optional data to jerror