Doc setup script

ready for merge