fixed error where object was being returned where it was expecting an array
Merge pull request #9 from rjacobsen2012/fix-bug-with-object-instead-of-array

fixed error where object was being returned where it was expecting an array