Added serialize and unserialize to Node