added methods to add CharNodes
removed main method