adjust error check of initial call to vsnprintf() to account for the fact that we always add 1
Add README.md
Add LICENSE
add header