Added exception handling for data directories that do not start at Run1
and started the correlation section of the piezofunctions module