Added fwrite functions for integers
Added fwrite function for bundle