Fix unsigned signed comparison warnings.
Redirect errors through the ErrorManager.
Commit missing files.