Initial commit..

First commit of script as it runs on my laptop with some attempts to
make it generic.