Adding comments and making some small changes on SimpleNode class