Fermion masses and mixings, Leptogenesis and baryon number violation in unified theories