correcting return type

getArray returns an array - I think some other types are wrong too in this class.