Fixed setPrintMode()/unsetPrintMode() bugs.
Merge pull request #4 from masatomukoda/mode

Fixed setPrintMode()/unsetPrintMode() bugs.