Initial checkin - script mostly works!

Signed-off-by: Nick Lambourne <nick.lambourne@gmail.com>