Fixes #5 Added some checks for constraint arguments