added linescan code
updated dot function to include conjugate