Faint galaxies and small halos : probes of galaxy formation and dark matter