Last commit before transposing xPoints
xPoints matrix transposed, correlation bugs fixed