I just noticed that he also published an account his time in captivity following Gettysburg. The full text is available on the internet at http://docsouth.unc.edu/fpn/shepherd/shepherd.html