Change constructor functions declarations
Add comparator to Signal constructor
Remove duplicate lines in Signal.val