Intelligent search. URL added to documents. Minor fixes