Changed to mode instead of sendLine.
Merge pull request #4 from deepy/Magni

Changed to mode instead of sendLine.