added dBdt approximation
commented out some code
Commented out some code and added debugging messages