fix some typos
fix rest typos and compatibility wyth pdf generation