BPS bug fix

* Fixed bug where collective term integral in BPS didn’t converge
* Added functions to get dielectric function from BPS