updating to save pdf's, minor cleanup