Move all debugging commadns to debug.go. This cleans the code.