Typos.
Return values.
Throw unimplemented.
Remove unused static function.
Initialize variables.
Destructor should be virtual.
Fix warnings about comparisons of integers of different types.
Comment unused parameters.
Remove unused variables.
Remove unused function.
Fix initialization order.