tidied source structure
added xtree and changed ctree to ctree on list