Fix typos and add documentation on types of nodes