Works more and cleaning code

Reworked gating variables so they aren't unnecessary vectors anymore.

Also rewrote and cleaned up the Euler's method code for my sanity and
clarity.

Added plotting functions.

Added header comments.