add extended likelihood and fix print_par parameter