Probably worth mentioning that the collar should be put on the dog without the battery in for a few hours initially (and this done every few days) so that the dog does not associate the collar with pain when barking.
Otherwise they will learn not to bark but only when the collar is actually on.
ETA Oops, didn't see this:
;)