Add a distribution script and restructure a little