Big update

- Avoid dependence to digest/stringbuffer
- Move to Ruby code as much as possible
- Fix bug to Integer when little endian