cleaning up the MatLab library and working on the provn to SPM conversion.