Fixed typos in comments and a dropped a useless const for a size_t argument

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>