update readme; add simple tester
update readme
remove some memory leaks