Added macro to allow simpler logic in functions with the need to vsnprintf
Replaced vsnprintf with VAFORMAT pretty much everywhere.