Added the download mechanism for embedded pdfs.
Fixed some documentation bugs.