The keeping in contact is great. Especially if she is the one that still wants to contact you. There seems much hope in your situation.
The sleep situation is a tough one. Been there and done that. I agree with Bworl about doing vigorous exercise in the evening so as to wear yourself down.
So what are your plans on moving back closer to your kids?