Fix switch module to parse input and output commands properly
Merge pull request #324 from wolfmanjm/fix/switch

Fix switch module to parse input and output commands properly