does a generator have a battery