Added comments
Fairly stable update, works with distributed transactions. Mass code cleanup required
Minor code cleanup
Removed unnecessary closing an reopening of EM from checkIfParent