add to encode ability to work with modified hexadecimal strings
spec refactoring
add OPT