kappa_amara now runs through without crashing and 3D matrices are being created properly. Still need to debug why the kappa_predicted.pdf isnt showing densities