Added missing cstddef includes and corrected the use of plain "size_t"
Corrected typos in documentation