Added comments, removed unnecessary stuff.