Minor changes
Using write_bit instead of fputs