What factors contributed to the spread of disease among Civil War soldiers?

There bad condition of battlefields, muddy, wet and cold