Added mathematical appendix on distributions