Molecular dynamics of nanoscale layered structures