Reading from opacityfile is correct.
Removed print and exit that shouldnt be there.
Algorithm for finding kappa should be correct.
Fixed lots of bugs. Integration now works with new kappa finding method. More effective.