Changed evalLines to calcHDMeans for clarity.
Added commented-out code to confirm HD is correct.