output -> entry
update readme
improve code structure