more additions

all the basic functions are there for use with the spm provanence
extraction.