Casualties included 1,037 Americans killed in action and 3,340 who died from disease; 20,000 rebels were killed