fix bugs
update pdf before publish
update Elegant theme
follow pep8