Fixed generate pdf method. Updated readme.