updated README. Fixed lifecycle bug