Changed read and write modes to read binary and write binary
Merge pull request #5 from soofatt/master

Changed read and write modes to read binary and write binary