Made simulation figure similar to prototype figure
f output signal change signs, set to zero first
Update output signal recording if changed
Removed old commented out code