Corrected dot product calks.
Cleaned up variable names, suppressed some console massages.