Branching fractions and charge asymmetries in charmless hadronic B decays at BaBar