add pdf download, fix formatting