Added nest operator to parser and tests, reorganized parser.