updated version

* format the code
* updated to netradiant version
* null terminating vsnprintf implementation