Validate all of the params to the main class

We started ensuring that parameters have a sane value; let's do it for
all parameters.

Signed-off-by: Gabriel Filion <gabster@lelutin.ca>