Add simple rakefile to generate pdf

- change some minor thing in writing