Can anyone help me read this?

Can anyone help me read this?

I am having trouble figuring out what this says. It's a discharge paper from 1865... civil war maybe??? Im especially having trouble reading the name and reason of discharge. Thanks to anyone who can help!!! :)