Structural and dynamical properties of surfaces from ab-initio molecular dynamics