Clean up Document