Fixed bug for index 0, and addChild now puts items on end.