document legacy systems with AI