Hey @Anonymous
Final version is available here. I shortened and improved function AddRecipientStatus in term of perf.
Put comments in the different querie's code => hopefully they answer your question
Power Query M documentation is available here. If you want pointers for learning purpose let me know