Added new documents tab and PDF handling.
Merging...