Fixed crash on logging unsigned, added --debug option