refactor of resultset - now iterable, needs testing
updates to resultset - now tested ready to merge
fricken stupid mistake!
changed to use arrays as result
bug fixes on model and resultset implementation