Paramserrorhandling

Checking that parameters required by all commands are provided in the params hash.