Added comments to some code, and fixed an issue with the frame size of the collection view