fixed bug where vsprintf didn't work with no args
add mocha for unit testing
added tests
tests update
performance update; fixes #12
performance and tests