Added logic to reindex node children on expandNode

fixed #118