Solenoid code. unfinished.
Completing the code that was added in the previous commit.
changed buffer
Merge pull request #1 from MartinVanBuren/untested

Untested