Added getChildren() method and javadoc comments