minor edits
inputType and outputType now Device class variables not global