some corrections, need more particular corrections
Some corrections

Should to correct the error with inputSignal, program doesn't recognize
inputSignal as array