remove unnecessary messages parameter in the ToMessages method
Merge pull request #1 from phaikawl/master

remove unnecessary messages parameter in the ToMessages method