Improvements to engines and documentation

Improvements to Java and Python engines as well as updates to the documentation on how to fix them.