Wrapper function that reads all apex data and calculates the optimal translation and rotation
Functions used to read data from csv files given a filepath