Clean up code.

Remove debug messages in handlers that are implemented. Turn ints into
unsigned ints where seen fit.