Change threshold to lower value
Standardize prinout levels to keep logs clean and consistent
Add debug messages
Get integral from composite function
Clean code and add debug messages