Updated doxygen
Replaced old wait for Document