$params initialization in method, Closes #45
Merge pull request #66 from martiis/issue45

$params initialization in method, Closes #45