- generally cleaned up and documented the Logic conversion - made exprToLHS a shared helper function, now uses Maybe - ported existing local exprToLHS helpers to the new one