Made modifications to ensure proper ordering in l5x file.

Added l5xIndex to all elements with multiple instances
Added indexing to XmlData