To spare the remnants of his Northern Army of Virginia. Answer he was dead<span>He surrendered to Grant because he was drastically outnumbered and decided to surrender in a gentleman's manner and to save one of his soldiers lives.</span>
The limitations would be how much evidence was available and the truthfulness of the witnesses. The Code dealt with violations of the law. The law specified punishments based on who you were...slave or master, etc..