-added paragraphs in getChildren method for children,
-optimezed and reogranized various code