Document. Document thoroughly. Every change you make -- every caveat you discover, every weird logic flow you traced, every time you think "this could be done better" -- document it.
It's the only way to slow and eventually eliminate systematic entropy without a substantial rewrite.