implemented new document.
removed obsolete attributes and methods.