FIXED #13. Added default value to numberOfChar, which is deleted accidentally in 07bc620.
bump version and release 0.4.1
Added auto precision to encode. Needs testing and documentation.
Added some tests, they are failing. Still need more work. Bed time now though.
Added better testing support, now using travis-ci
Modified some var names to better fit camel case.
Merge of master