Changes needed to load data correctly

Hi @dovy et all. The old solution for traversing the $options array fail when loading the data. Thats because of the use of $x, which used to work, but now the group stores all the data inside a group array(multidimensional), its not possible to use the current and next pointer movers.
Also, there is a fix by @cyberwani for the correct naming of the fields name.