Finished adding protocol in sampling

Not sure if entirely mathematically correct, will check tomorrow