Finalised the three shape objects.
Rewrote the trial and accession trial scripts, need to test them still.