Refactoring code and adding comments
Working on resize browser