Got rid of irrelevant code, and unnecessary comments.