fixes for profiling with asymmetric uncertainties plus small improvements for the profiling procedure