X-Bar: rebuild nodefrom scatch

Did this to add tutorial writing and add more comments