What's Up With the Ending?
It's a bittersweet ending: Ray and Charlie end up separated, once Charlie realizes that sending Ray back into Dr. Bruner's care is the right thing to do for Ray.
He's disappointed, since they were just starting to bond, but at least it's a nice show of how much he's changed—for the better—that he is willing to give up what he wants to do what's right for his brother.