Structure and elastic properties of a nematic liquid crystal: A theoretical treatment and molecular dynamics simulation