Changing variables

Played with the initials values, added the function peakdet, which is
used to find the peaks in a vector, may or may not use this in the end,
tried to up the importance of the M current