Shmuel and Divrei ha-Yamim approach the question of David's part in the construction of the Temple differently. What is the reason for this difference, and how is it expressed in our chapter? And why do conclusion verses appear in the middle of the chapter?

Additional References
דברי הימים א; כח; דברי הימים א; כט;