fixes to display_publication_info function and some code clean-up