Added comments, code refactoring