update read me file and refactoring some variables