thought random-4 Code refactoring and Readme updated