Removed reused code and wrote some comments