make figures pdf

also added script to automatically generate figures.