fix typo
update global var names
add README and LICENSE