Refactoring some code and adding comments.