Added parameter checking

Commands now check parameters for errors before passing to bound
function in Cmd.callFunc()