added parameter sampling and a test
added coeff and param sampling