fixed a couple typos/logical errors; "devide"-> "device" in a function name, "input"-> "output" in open()
Merge pull request #1 from victor-shepardson/master

fixed a couple typos/logical errors; "devide"-> "device" in a function n...