Improved methods

Changed return data from a string to an array in Model's getAllMessages
method.