Notes on the p-spin glass studied via Hamilton-Jacobi and smooth-cavity techniques