Transient and steady state heat transport in layered materials from molecular dynamics simulation