correcting return type

getArray returns an array - I think some other types are wrong too in this class.
Merge pull request #34 from mroswald/patch-4

correcting return type