ensure all values are positive - negative radiance doesn't make sense
new functions and fixes