change from savePlot to pdf function

also turn off echo in tic/toc() to eliminate from html