Rewrote getParams() to be more dynamic and shorter
Renamed paramSettings to getParameters, to cause less confusion
Merge pull request #1413 from mluto/clean-getParams

Rewrote getParams() to be more dynamic and shorter