Changed first parent type to None.

Changed first parent type to None; implemented Node functions get_parent
and get_state.