Fixed the order children are being added

Also added the sample.txt file