Move COD2_MAX_STRINGLENGTH to a more suitable location
Allow printf to pring % by using %%
Add support for sprintf