Added define node
Modified output
Added functions for  getting node width and hieght