Error catching wrappers for all the analyses

Fixes and more informative error messages for mutual information