Fixed incorrectly transposed adaptation matrices. Fixed order of matrix multiplications. Changed some variable names. Used shortcuts for matrix construction.
Allow for custom illumination white-points