Fixed typos, thanks to ubaransel.
Added auto detection of correct protocol.

See https://github.com/ubaransel/lgcommander/pull/4#issuecomment-52245847