Added more comments to PA4 and did some cleanup.