Fixed unnecessary and duplicate code. Refactored my comments.