Refs #14 - Create helper function to transform an array of AbstractEntity objects into a nested array.

Add missing DocBlock.
Merge pull request #14 from synapsestudios/feature/14-transform-entities-helper-method

Helper Method to transform Entity Array into Nested Array