Initial commit of files

Adding all the scripts/functions used to generate and manipulate the
data.