Raw method

I wanted to have output of the raw data in order to integrate in a custom rendering engine.
These changes add a raw($type, $datas) method that returns a tuple array with digits and hri.
It's basically just a bit of code refactoring.