Changed all write file statements to wb, rather than w. This makes the files binary so can be transferred between Windows, Linux etc without read problems due to header differences.
Merge branch 'master' of https://github.com/1orwell/yrs2013