Refactored parser. Specification now also holds a list if Items to maintain order of all elements