Bugfix element lastOutput state
update readme
update lib