Chemistry at the edges of graphene