Added pdf creation script and fixed an equation