add tests
add support for base 256 and errors if larger than 256 or smaller than 2