added proper argument checking mechanisms for polarity and signal, fail checkpoint.