Some improvements

Hi,

I added somme improvements on the library (use value when interger = 0), etc.
You can look at test.js to see the changes.

I change the code readability to respect a little bit idiotmatic.js (https://github.com/rwldrn/idiomatic.js/)

I changes the version too for npm.

Thanks for your module :)