Added comments detailing what code does