You're quite correct with most of this.
I would say "How have you been [doing]?" is not limited to close friends, however.
Also, "later" does usually mean later the same day, but can be used in greetings and good-byes in a more literal sense: another day or time.
- For Teachers