Changes 1.0
   -> replacing many fwrites by fprintf
   -> using static initialization of write buffer
   -> removed wrapper for fwrite