partially fix memory leaks
readme