Change node direction. Node size fit text in it. Fix some bugs.