Replaced std::size_t usages with int.
Corrected a couple of formatting issues.