moving pdf function to its own file
properly formatted header