Update retrieveAll function

Remove redefinition of $params array.
Merge pull request #41 from legiero/master

Update retrieveAll function