Measurement of CP Asymmetries and Branching Fractions in B → ππ and B → Kπ decays