made 3 refactoring changes and updated the refactor notes