updated README and logic