Opacity fetch function now works. Problem was using log function and not log10 function from numpy. Also added nice test function.