added functions:

    to_hex/1
    from_hex/1
    discharge/2
    discharge/3
    reverse/1
    position/2
    trim/1
    trim/2
    trim/3