Changed record storage to char*
Add a padding for sprintf