Fixed more bugs like issue #10
Fixed syntax error.
Merge pull request #11 from jrs65/io_bug

Fixed more bugs like issue #10