moving forward. Now it actually writes a binary file. Though I have not finished yet.