Tidy up script. Work in progress.
Merge branch 'master' of github.com:kcl-ddh/digipal