refact main method
update README.md