Fix instance of []TreeNode to TreeNodes
Added more logging to websockets