Fix skip conditions in simple Bayes algorithm to prevent overflow
Fix check to prevent reading unitialised memory
Fix double free when modules fail to load
Add a perror-like function to log proxy
Update inline documentation
Provide more helpful error message when module versions mismatch