Implemented inversion function
Addressing review

Addresses my review of Josh's changes. Inversion
algorithm now inverts the signal correctly

Issue: 14
Review: 17
Merge pull request #22 from aidlance/signal_inversion

Signal inversion, functional. Merging.