The script

First commit of the script, too much to do yet