On the Hilbert scheme of curves of degree \(d\) and genus \(\frac{(d-3)(d-4)}{2}\) Local moduli and singularities. Appendix (by B. Martin and G. Pfister): An algorithm to compute the kernel of the Kodaira-Spencer map for an irreducible plane curve singularity 