normalizeColVector function, square error checking fixes