Add pipeline script

Remove a bit of unused code and update a version number too.