I found this PDF a loooong time ago and started reading it again the other day. Not really to get into remapping but actually to get a refresher on how the ECU/PCM works from a "Software" point of view.
It is very interesting and worth a read/scan. To see how all the things fit together and to see how the sensors and actuators come into play.