Outsourced kappareader to its own file.
Added constant for opacity filename. Incorporated usage of the  file.