added getParams and updateParams functionality
added removeParams and removeParam
simplified setParams extremely well
fixed getParams to handle arrays