Ad the state value constants

Added the state constants so I dont have to define them in every file
Convert script to use argparse

Convert the script to use argparse, see the README festures section for details why.
Convert the check to use argparse

For details on why this was done please see the README section on features.