fix
simplify
Merge pull request #9 from jedmiry/master

Fixes issues with newParams, and makes supplimentary function inline