Introduction - If you have any usage issues, please Google them yourself
Evaluation program of fading counter based BPSK transmission scheme
This program is one of example simulations that include fading
As for the explanation, you can check Chapter 3.