Added functionality to add datasets as Arrays in addition to Hashes
Added an internal test for analysis function