cleaning up based on suggestions in pull request

added IntEnum class for mode
added license
changed communication protocol to be SCPI compliant