changed structure
add license text
rename method string2hex