If you would like to access node data but only have the node id ($nid in this case) all you need to do is:
This lacks some "content". To generate that we can take this one step further:
$node = node_load($nid);
This lacks some "content". To generate that we can take this one step further:
$node = node_build_content(node_load($nid));