fixed pdf output and updated some text