Complex sentence: Between 1987 and 1989 the R40s were rebuilt by Sumitomo in Elmira Heights, New York and were fitted with air conditioning.
Split into simpler sentences: Between 1987 and 1989 the R40s were rebuilt by Sumitomo in Elmira Heights, New York. During overhaul, all R40s were fitted with air conditioning.