added add, delete node and print functions