Refactoring, separating MATLAB from library, changing name rt_dist -> fpt