AI documentation for legacy applications