added savename method
added possibility to measure the pdf