Updated comments to better describe functions