added documentation to distribution script