I explained to some detail how Xposed works in my thesis which can be downloaded here
It can be found in the implementation part.
I thought that some might find it interesting.
If there is something wrong it is too late now
Also checkout my privacy test app: